package com.yesido.split.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author yesido
 * @description
 * @date 2023-06-14 23:36
 * @Version 8.3
 */
@Data
@TableName("user")
public class User {
    /**
     * 保证主键从1 开始步长为1
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtCreate;
    public User() {
    }
}
